<%@ taglib prefix="c" uri="/WEB-INF/tlds/hdiv-c.tld"%>
<%@ taglib prefix="form" uri="/WEB-INF/tlds/hdiv-spring-form-3_0_4.tld"%>
<%@ taglib uri="/WEB-INF/tlds/hdiv-spring.tld" prefix="spring"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<c:url value="mostrarHWF1005.html" var="equivalenciadeclientes"/>
    <script type="text/javascript">
    function siguiente(){
    
      contador=0; 
       if(document.forms[0].chk!=null){            
            for (i=0;i<document.forms[0].chk.length;i++){ 
                if (document.forms[0].chk[i].checked==true){  
                    contador++;
                }
            }               
            if (document.forms[0].chk.checked==true)  
                contador=1;   
       }           
       if (contador > 0 ) {
            moveForward('seleccionar');  
        }else{
            alert('Seleccione el cliente destino.');
        }
     
    }
    
    function seleccionar(codigo,descripcion){
        document.forms[0].codDestino.value = codigo;
        document.forms[0].desDestino.value = descripcion;
    }    
    </script>
<form:form modelAttribute="form" action="${equivalenciadeclientes}">
    <form:hidden path = "accion"/>
    <form:hidden path = "control"/>
    <form:hidden path="cliente"/>
    <form:hidden path = "sucursal"/>
    <form:hidden path = "desDestino"/>
    <form:hidden path = "codDestino"/>
    <table id="fullheighttable" width="780" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center" valign="top" class="fondo_contenido padtop16left21">
<table width="775" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td height="22" align="left" valign="top" class="verdana11bazul">
		<ul class="navlist2">
		<li>BUSCAR CLIENTE</li>
		</ul></td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
    </table>
      <table border="0" cellpadding="0" cellspacing="0" class="margintop26 verdana10bazul" >
       
      
        <tr>
          <td width="110" height="34" align="left" valign="bottom" class="padleft11" >
             <input name="Submit2" type="button" class="boton"
                    value="Seleccionar" onclick="siguiente();"/>
            </td>
          <td width="283" height="34" align="left" valign="bottom" ><table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="left" valign="bottom" class="padright10">&nbsp;
              </td>
              <td class="padright10">
          <input type="button" class="boton" value="Cancelar" onclick="moveForward('cancela');"/>           
              </td>
            </tr>
          </table></td>
          </tr>
      </table>
      <table width="753" border="0" cellpadding="0" cellspacing="0" class="margintop20">
        <tr>
          <td width="11" height="27">&nbsp;</td>
          <td height="27" class="borde_plomo">&nbsp;</td>
        </tr>
        <tr>
          <td width="11">&nbsp;</td>
          <td align="left" valign="top" class="borde_plomobottom">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
             <td>
              <display:table id="lista"                             
                             name="listaDestinos" cellpadding="0"
                             cellspacing="0" style="width:100%" 
                             pagesize="15" 
                             requestURI= "${equivalenciadeclientes}"                             
                             class="bordertable">
                <display:column headerClass="columnheader_first"
                                class="columnbody_first" title="Sel.">
                <form:radiobutton path="chk" value="${lista.codPunto}-${lista.desPunto}" />                                 
                </display:column>

                              
                                <display:column headerClass="columnheader_final"
                                class="columnbody_final" property="desPunto"
                                title="Punto"/>
              </display:table>
             </td>
            </tr>
           </table>
          </td>
        </tr>
      </table>
      </td>
  </tr>
</table>
</form:form>
